module.exports=function(req,http,model){
	var f=req['get']['f'];
	var loginname=req['post']['loginname'];
	var loginpass=req['post']['loginpass'];
	console.log(loginname);
	var html='';
	switch(f){
	case('login'):
		var ret=model.user.login(loginname,loginpass);
		var arr={'loginname':loginname};
		html=http.ejs('header,login,footer',arr);
	break;
	}
	return(html);
};
